package com.synjones.wschool.face.serviceImpl;

import com.synjones.wschool.face.domain.OrderMealItem;
import com.synjones.wschool.face.mapper.OrderMealItemMapper;
import com.synjones.wschool.face.service.OrderMealItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * Created by 24398 on 2018/7/27.
 */
@Service
public class OrderMealItemServiceImpl implements OrderMealItemService{
    @Resource
    private OrderMealItemMapper orderMealItemMapper;

    @Override
    public List<OrderMealItem> selectList(Date beginTime, Date endTime, Long orderUserId, Integer orderUserSource) {
        List<OrderMealItem> orderMealItems = this.orderMealItemMapper.listOrderMealItem(orderUserId,orderUserSource,beginTime,endTime);

        return orderMealItems;
    }
}
